//
//  HsImageUtil.h
//  Hybrid-iPad
//
//  Created by Mead on 4/24/14.
//  Copyright (c) 2014 hundsun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface HsImageUtil : NSObject

//缩放图片,并对图片质量进行压缩
//scale:缩放比例
//compression:压缩比例
+ (NSData*) imageFrom:(UIImage*)image scale:(CGFloat)scale compression:(CGFloat)compression;

+ (UIImage *)createImageWithColor: (UIColor*) color;
@end
